# -*- coding:utf-8 -*-

from sqlalchemy import Column, ForeignKey, DateTime, Integer, String, Numeric
from config.database import BaseMixin, Base, BaseStock


class DcIndex(Base, BaseStock):
    __tablename__ = "dc_index"

    down_num = Column(Integer, comment='下降家数')

    leading = Column(String(20), comment='领涨股票名称')

    leading_code = Column(String(20), comment='领涨股票代码')

    leading_pct = Column(Numeric, comment='领涨股票涨跌幅')

    name = Column(String(40), comment='概念名称')

    pct_change = Column(Numeric, comment='涨跌幅')

    total_mv = Column(Numeric, comment='总市值（万元）')

    trade_date = Column(DateTime, comment='交易日期')

    ts_code = Column(String(20), comment='概念代码')

    turnover_rate = Column(Numeric, comment='换手率')

    up_num = Column(Integer, comment='上涨家数')

